<?php
$message ="";

    if(isset($_POST['cosubmit'])){
       
        $userid = $_SESSION['user_id'];
        $connid = $_GET['id'];
        $commentc = $_POST['commentonly'];
        
      $message =  $CP_controller->commentOnly($commentc,$userid,$connid);
    }
echo $message;
?>



<div id="commentform">
<form id = "commentonly" method="post">

    

    <textarea id="commentonlyc" name="commentonly" rows="5" cols="50" placeholder="Skriv kommentar.."></textarea></br>
        <input  type="hidden" id="useridcomment" name ="useridcomment" value="<?php echo $userid ?>"/>
        <input  type="hidden" id="connectionidcomment" name ="connectionidcomment" value="<?php echo $connid ?>"/>
        <img    src="../images/knapp.png" id="commentsubmit">
        
        
     </form>
    <div id="sorttypes" align="center">
        
        <img src="../images/dislike_1.png"      id="sortdislike">
        <img src="../images/like_1.png"         id="sortlike">
        <img src="../images/vanlig.png"         id="sortlikeordinary">
        
    </div>
</div> 
